﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="history_sendmail.aspx.cs" Inherits="mail_history_sendmail" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Send mail profiles rejected</title>
    <link href="../styles/style.css" rel="stylesheet" type="text/css" />
    <link type="text/css" href="../css/smoothness/jquery-ui-1.8.11.custom.css" rel="stylesheet" />
    <script src="../js/jquery-1.5.min.js" type="text/javascript"></script>
    <script src="../js/jquery-ui-1.8.9.custom.min.js" type="text/javascript"></script>
            <script type="text/javascript">
                $(function() {
                    $("input[id$=txtFrom]").datepicker({
                        yearRange: "-1:+0",
                        dateFormat: 'dd/mm/yy',
                        changeMonth: true,
                        changeYear: true
                    });
                    $("input[id$=txtTo]").datepicker({
                        yearRange: "-1:+0",
                        dateFormat: 'dd/mm/yy',
                        changeMonth: true,
                        changeYear: true
                    });

                });

    </script>
    
    </head>
<body>
    <form id="form1" runat="server" >
    <div class="wrapper">
    
    <div id="header">
		<h1 class="logo">
        <a href="../index.aspx">	
        <img src="../images/logo.png" width="280" height="46" border="0" /></a>
        
        </h1>
       <div class="login_zone" >
            Username:<asp:Literal ID="lUsername" Text="" runat="server" />
            <br />
             <asp:LinkButton ID="lnkLogout" runat="server" Text="Logout" 
                    onclick="lnkLogout_Click" /> | <a href="../login/change_pass.aspx">Change password</a>
            </div>
        </div>
     <div class="clear"></div>
       <br />
        <div style="margin-bottom:20px;width:300px;float:left;">
           <ul class="breadcrumb">
        <li>
            <a href="index.aspx">
              <img src="../images/home.png" width="24" height="23" border="0" align="left"  class="home" style="margin-top:2px;" />
            </a>
            
         </li>
        
          <li>
           <a href="../index.aspx">
            Homepage
            </a>
          </li>
          <li>
            List mail sended
          </li>
        
     </ul>
        </div>
        

          <br /><br /><br />
          <div class="main_content">  
          <div style="margin-top:-8px;">
             <img src="../images/send_mail.jpg" width="900" height="77" />
           </div>        
            <br />
             <table width="94%" align="center"  >
          
        <tr>
            <td align="left" width="40">
                
            
            
                &nbsp;</td>
        
            <td align="left" style="padding-bottom:4px;">
               <div style="width:240px;float:left;padding-left:20px;">
                From date: <asp:TextBox ID="txtFrom" runat="server" 
                    CssClass="box2" Width="90px" TabIndex="7" ></asp:TextBox>
                    
                                </div>
                                <div style="float:left;width:156px;">
                                 to date: 
                                <asp:TextBox ID="txtTo" runat="server" 
                    CssClass="box2" Width="90px" TabIndex="7"></asp:TextBox>
                    </div>
                    <div style="width:180px;float:left;padding-left:10px;">
                           <asp:Button ID="btnView" runat="server" Text="View" CssClass="button white" 
                               onclick="btnView_Click"  />
            
                    </div>
            </td>
        
            <td align="left" style="padding-bottom:4px;">
                &nbsp;</td>
        
        </tr>
  
        </table>

     <table width="94%" align="center" >
            <tr >
                <td style="padding:4px;">
                   <br /><br />
                    
                    <dx:aspxgridview ID="gdListProfilesRejected" runat="server" 
                        AutoGenerateColumns="False" 
                        onhtmlrowcreated="gdListProfilesRejected_HtmlRowCreated" 
                        KeyFieldName="profile_id" 
                         Width="680px">
                        <SettingsPager AlwaysShowPager="True">
                        </SettingsPager>
                        <Columns>
                            <dx:GridViewCommandColumn VisibleIndex="0">
                                <clearfilterbutton visible="True">
                                </clearfilterbutton>
                            </dx:GridViewCommandColumn>
                            <dx:GridViewDataTextColumn Caption="id" VisibleIndex="0" FieldName="profile_id" 
                                Visible="False">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Fullname" VisibleIndex="1" Width="180px" 
                                FieldName="fullname">
                                <CellStyle HorizontalAlign="Left">
                                </CellStyle>
                               
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="D.O.B" VisibleIndex="2" FieldName="birth" 
                                Width="80">
                                <PropertiesTextEdit DisplayFormatString="dd-MM-yyyy"></PropertiesTextEdit>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Email" FieldName="mail_to" VisibleIndex="3" 
                                Width="160">
                                <CellStyle HorizontalAlign="Left">
                                </CellStyle>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Date sended email" VisibleIndex="4" FieldName="date_sended" Width="140">
                                 <PropertiesTextEdit DisplayFormatString="dd-MM-yyyy/ hh:mm:ss"></PropertiesTextEdit>
                                 
                                 <Settings AllowAutoFilter="True" />
                                 
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Profile dated" VisibleIndex="5" 
                                FieldName="date_created">
                                   <PropertiesTextEdit DisplayFormatString="dd-MM-yyyy"></PropertiesTextEdit>
                            </dx:GridViewDataTextColumn>
                            
                            
                        </Columns>
                      
                        <settings showfilterrow="true" />
                      
                    </dx:aspxgridview>
                    
                    
                    
                   <br />
                    
                </td>
            </tr>
                        
            
           </table>
         
         

        </div>
        
                <asp:Panel ID="panelEdit" runat="server">    
         <br />
        </asp:Panel>
         
        <div id="footer">
        	<p>
            	IT Dev 2011
                <br />
                Version beta 
                </p>
         </div>          
    </form>
</body>
</html>
